package com.gcxy.service;

import com.gcxy.core.R;
import com.gcxy.dto.agency.AgencyDTO;
import com.gcxy.dto.agency.AgencyPageDTO;
import com.gcxy.entity.Agency;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gcxy.vo.agency.AgencyAllListVO;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Huang先森
 * @since 2024-07-22
 */
public interface AgencyService extends IService<Agency> {

    R<?> insertAgency(AgencyDTO agencyDTO);

    R<?> getAgencyPageByCondition(AgencyPageDTO agencyPageDTO);

    R<?> updateAgency(AgencyDTO agencyDTO);

    R<?> deleteAgencyById(Integer id);

    Agency getAgencyByName(String name);

    List<AgencyAllListVO> getAgencyAllList();

    /**
     * 获取能够执行周报任务的组织机构
     * @return
     */
    List<Agency> getHasWeeklyAgencyList();
}
